﻿@inherits Statiq.Razor.StatiqRazorPage<IEnumerable<IDocument>>

@foreach (IDocument post in Model)
{
    <article class="post">
        <header class="jumbotron">
            <h1 itemprop="headline name">
                <a itemprop="url" href="@Context.GetLink(post).Substring(1)">@post.GetString(WebKeys.Title)</a>
            </h1>
            <div class="bh">
                <time datetime="@post.GetDateTime(WebKeys.Published).ToString("yyyy-MM-dd")" itemprop="datePublished">@post.GetDateTime(WebKeys.Published).ToString("MMMM dd, yyyy")</time> by <span>@post.GetString(WebKeys.Author)</span>
            </div>
        </header>

        <div itemprop="articleBody">
            @Html.Raw(await post.GetContentStringAsync())
        </div>
        <div class="collapse" aria-hidden="true" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
            <meta itemprop="name" content="@post.GetString(WebKeys.Author)">
        </div>
        <meta itemprop="dateModified" content="@post.GetDateTime(WebKeys.Published).ToString("yyyy-MM-dd")">
    </article>
}